package im.yangqiang.android.unicorn.http;

import im.yangqiang.android.unicorn.log.ULog;

/**
 * 显示请求日志
 * Created by Carlton on 2014/12/24.
 */
public class HttpLog
{
    private static final String TAG = "HttpLog";

    /**
     * 请求参数
     *
     * @param url
     * @param message
     */
    public static void request(String url, String message)
    {
        ULog.d(TAG, "--> " + url + ":\n" + message);
    }

    /**
     * 响应
     *
     * @param url
     */
    public static void response(String url, String message)
    {
        ULog.d(TAG, "<-- " + url + ":\n" + message);
    }

    /**
     * 错误
     *
     * @param url
     */
    public static void error(String url, String message)
    {
        ULog.d(TAG, "-- error -- " + url + ":\n" + message);
    }

    /**
     * 取消
     *
     * @param url
     */
    public static void cancel(String url)
    {
        ULog.d(TAG, "-- cancel -- " + url);
    }
}
